package org.dbview.service.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.dbview.dao.IDictionaryModuleMapper;
import org.dbview.model.TDictionaryModule;
import org.dbview.service.IDictionaryModuleService;
import org.springframework.beans.factory.annotation.Autowired;

public class DictionaryModuleServiceImpl implements IDictionaryModuleService {
	private static Logger logger = Logger.getLogger(DictionaryModuleServiceImpl.class);
	
	@Autowired
	private IDictionaryModuleMapper dictionaryModuleMapper;

	@Override
	public List<TDictionaryModule> getAllViewModule() {
		try {
			return dictionaryModuleMapper.findAllModule();
		} catch (Exception e) {
			logger.error(e.getMessage(), e);
			return null;
		}
	}

}
